package com.hmkj.core.service.wx;

import com.hmkj.core.po.wx.WxAccount;
import com.hmkj.core.service.base.GenericService;

import java.util.Map;

/**
 * 微信公众号表业务相关Service接口<br>
 *
 * @ClassName: WxAccountService
 * @author Vector
 * @date   2017-10-18 10:04:13
 */
public interface WxAccountService extends GenericService<Integer, WxAccount> {
    /**
     * 用户关注事件
     *
     * @param map 返回数据
     * @return
     */
    String subscribe(Map<String, String> map);

    /**
     * 验证消息真实性
     *
     * @param signature
     * @param timestamp
     * @param nonce
     * @return
     */
    boolean checkSignature(String signature, String timestamp, String nonce);
}
